package designmode.design7;

/**
 * Main
 *
 * @author lfg
 * @version 1.0
 */
public class Main {

    public static void main(String[] args) {
        Car car = new Car();
        car.setPower(CarPowerEnum.OIL);
        car.setColor(CarColorEnum.RED);
        System.out.println(String.format("this is a %s car and %s power", car.getColor().getCode(), car.getPower().getCode()));
    }
}
